<?php
class PC4_Util_Form{

	static function dropdown($nome, $opcoes, $opcaoSelecionada = '', $complemento = '', $valoresPadrao = true){
?>
<select name="<?php echo $nome; ?>" <?php echo $complemento; ?>>
<?php 
		foreach($opcoes as $c => $opcao){
			$c = (!$valoresPadrao) ? $opcao : $c;
?>
	<option value="<?php echo $c; ?>" <?php echo ($c == $opcaoSelecionada) ? ' selected="selected"' : ''; ?>>
		<?php echo $opcao; ?>
	</option>
<?php 
		}
?>
</select>
<?php
	}
}